package com.sc.nft.service.impl;

import com.sc.nft.dao.EcologyCollectionShareProfitConfDao;
import com.sc.nft.entity.EcologyCollectionShareProfitConf;
import com.sc.nft.entity.vo.merchantPledgeTask.AdminEcologyIncomeConfNewDetailsVO;
import com.sc.nft.entity.vo.merchantPledgeTask.NewAdminEcologyIncomeConfDetailsVO;
import com.sc.nft.service.EcologyCollectionShareProfitConfService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 * 新生态藏品分润配置 服务实现类
 * </p>
 *
 * @author liGen
 * @since 2024-11-26
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class EcologyCollectionShareProfitConfServiceImpl implements EcologyCollectionShareProfitConfService {

    private final EcologyCollectionShareProfitConfDao ecologyCollectionShareProfitConfDao;

    @Override
    public boolean saveAll(List<EcologyCollectionShareProfitConf> shareProfitConfList) {
        return ecologyCollectionShareProfitConfDao.saveAll(shareProfitConfList);
    }

    @Override
    public List<EcologyCollectionShareProfitConf> listByConfId(Long confId) {
        return ecologyCollectionShareProfitConfDao.listByConfId(confId);
    }

    @Override
    public boolean updateById(EcologyCollectionShareProfitConf ecologyCollectionShareProfitConf) {
        return ecologyCollectionShareProfitConfDao.updateById(ecologyCollectionShareProfitConf);
    }

    @Override
    public AdminEcologyIncomeConfNewDetailsVO getConfList(Long confId) {
        return ecologyCollectionShareProfitConfDao.getConfList(confId);
    }

    @Override
    public boolean getCountByConfId(Long confId) {
        return ecologyCollectionShareProfitConfDao.getCountByConfId(confId);
    }
}
